<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>FanZone</title>
		<link rel="stylesheet" type="text/css" href="css/common_samplify.css" />
		<script src="js/jquery-3.2.1.min.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript" src="js/fanzone_commen.js" ></script>
		<style>
			.test_shop{
				height: auto;
				width: 100%;
				background: #D6E9C6;
				display: none;
			}
		</style>
	</head>
	<body>
		<script>
			var url1="http://fanzone.natapp1.cc/sell/buyer/product/list"
			
			function toDiv(data){
				var s={'s':1}
				var str=data.data;
				alert(s)
//				var jsonObject=JSON.serialize(str);

				alert(str)
				
				for(var each in str){
					for(var i in str[each]){
						alert(str[each][i])
					}
				}
				
				alert(jsonObject)
			}

			$(document).ready(function(){
				$("#test").click(function(){
					$.ajax({url:url1,success:function(data){
							alert(data)
							toDiv(data)
						
					}
					})
				})
			})
		</script>
		<h1>店铺查询测试</h1>
		<button id="test" onclick="">查询店铺</button>
		<button id="test1" onclick="toDiv1()">sure ddd</button>
		<div class="test_shop">
			
		</div>
		<input type="file" capture="camera" value="sexiangtou"/> 
	</body>
</html>
